﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Web;
using System.Collections.Specialized;

namespace Marbles.Core.Web.SiteMapManager
{
    public class SiteMapReader : SiteMapBase
    {
        private string _filename = string.Empty;
        private XmlSiteMapProvider prov = null;

        public SiteMapReader(string filename)
        {
            NameValueCollection providerAttributes = new NameValueCollection();
            this._filename = filename;
            this.prov = new XmlSiteMapProvider();
            providerAttributes.Add("siteMapFile", this._filename);
            prov.Initialize("testProvider", providerAttributes);
            this._nodes = prov.BuildSiteMap();
        }                    
    }
}
